package cn.gemiman.daoyi.module.iot.controller.app.userequipment.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "用户 APP - 会员设备绑定/修改 Request VO")
@Data
public class AppUserEquipmentBindReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "5898")
    private Long id;

    @Schema(description = "设备厂商", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "设备厂商不能为空")
    private Integer equipmentManufacturer;

    @Schema(description = "设备名称", example = "王五")
    @NotEmpty(message = "设备名称不能为空")
    private String deviceName;

    @Schema(description = "场所编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "10339")
    @NotNull(message = "场所编号不能为空")
    private Long placeId;

    @Schema(description = "设备序列号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "设备序列号不能为空")
    private String deviceIdentifier;

}
